{%extends file="user/page/layout.tpl"%}

{%block name="sub-head-static"%}
    {%require name="common:static/lib/js/highcharts.js"%}
    {%require name="user:static/wallet/wallet.less"%}
    {%require name="user:static/wallet/wallet.js"%}
    <script>
        P.data('assets',{%json_encode($data)%});
    </script>
{%/block%}

{%block name="right-content"%}
   <div class="page-wallet">

       {%*
       <div class="block wallet-share">
           <img src="/user/walletqrcode" class="qrcode">
           <div class="tip-content">
               <div class='line1'>想提高活期的购买额度？</div>
               <div class="line2">用微信扫描左侧二维码，晒收益，抽提额券！</div>
           </div>
           <img src="../static/wallet/image/tip.png" class="tip">
       </div>
       *%}

       <div class="block preview">
           <div class="block-left">
               <div class="wallet-amount">
                   <span class="value">￥{%$data.wallet.total|format_amount%}</span>
                   <span class="desc">账户余额</span>
               </div>
           </div>
           <div class="block-right">
               <div class="summary">
                   <div class="number-block">
                       <i class="ob-icon bo-icon-cycle2"></i>
                       <div class="ob-context">
                           <div class="ob-title ob-title1 now-profit">￥{%$data.wallet.canwithdraw|format_amount%}</div>
                           <div class="ob-info">可用资金</div>
                       </div>
                   </div>

                   <div class="number-block">
                       <i class="ob-icon bo-icon-cycle2"></i>
                       <div class="ob-context">
                           <div class="ob-title ob-title1 now-profit">￥{%$data.wallet.freeze|format_amount%}</div>
                           <div class="ob-info">冻结资金</div>
                       </div>
                   </div>
                   <div class="clear"></div>
               </div>
               <div>
                   <a class="btn btn-large btn-main" href="/user/recharge">充值</a>
                   <a class="btn btn-large" href="/user/withdraw">提现</a>
               </div>
           </div>
       </div>

       <div class="block assets-preview">
           <div>
               <div class="block-left">
                   <div class="assets-cycle"></div>
               </div>
               <div class="block-right">
                   <div class="summary">
                       <div>
                           <div class="number-block">
                               <i class="ob-icon bo-icon-cycle2"></i>
                               <div class="ob-context">
                                   <div class="ob-title ob-title1 now-profit">￥{%$data.wallet.total|format_amount%}</div>
                                   <div class="ob-info">账户余额</div>
                               </div>
                           </div>

                           <div class="number-block">
                               <i class="ob-icon bo-icon-cycle2"></i>
                               <div class="ob-context">
                                   <div class="ob-title ob-title1 now-profit">￥{%$data.demand.total|format_amount%}</div>
                                   <div class="ob-info">真融宝活期</div>
                               </div>
                           </div>
                           <div class="clear"></div>
                       </div>

                       <div>
                           <div class="number-block">
                               <i class="ob-icon bo-icon-cycle2"></i>
                               <div class="ob-context">
                                   <div class="ob-title ob-title1 now-profit">￥{%($data.term1.amount+$data.term3.amount+$data.term6.amount)|format_amount%}</div>
                                   <div class="ob-info">真融宝定期</div>
                               </div>
                           </div>

                           <div class="number-block">
                               <i class="ob-icon bo-icon-cycle2"></i>
                               <div class="ob-context">
                                   <div class="ob-title ob-title1 now-profit">￥{%$data.iphone6.credit|format_amount%}</div>
                                   <div class="ob-info">果六宝</div>
                               </div>
                           </div>
                           <div class="clear"></div>

                       </div>
                   </div>
               </div>
               <div class="clear"></div>
           </div>

       </div>

       <div class="block question-block">
           <h5>常见问题：</h5>
           <div class="question">
               <div class="ask">1、什么是帐户余额？</div>
               <div class="answer">您通过银行卡充值到真融宝帐户中的钱会出现在帐户余额中，它是由可用资金和冻结资金组成。可用资金可用于购买活期或定期产品，也可以提现到银行卡。</div>
           </div>

           <div class="question">
               <div class="ask">2、什么是冻结资金？</div>
               <div class="answer">冻结资金为暂时不可用资金，一般提现中或购买中的资金会处在暂时冻结状态，系统处理完成后将会解冻。</div>
           </div>

           <div class="question">
               <div class="ask">3、有哪些原因会导致帐户余额发生变化？</div>
               <div class="answer">
                   <div>（1）充值会增加帐户余额</div>
                   <div>（2）提现会减少帐户余额</div>
                   <div>（3）购买活期或定期产品会减少帐户余额</div>
                   <div>（4）赎回活期或定期产品会增加帐户余额</div>
               </div>
           </div>
       </div>

   </div>
{%/block%}